<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <h2>js逻辑运算符</h2>
</body>
<script>
    // ! 否定
    let a1 = 10;
    //  console.log(!!a1)

    // && 并且，两侧同时为真，结果才为true，皆真与才真

    let a2 = 20;

    // if(a2 && '高薪就业') {}

    // || 有真或为真


    console.log(a2 || '高薪就业')
</script>

</html>